﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MaintenanceExamCategory.aspx.cs" Inherits="Skynet.LiteForm.Administration.MaintenanceExamCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="gvExamCategories" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False" DataSourceID="odsExamCategory" 
    DataKeyNames="Id" EnableViewState="False" 
    onselectedindexchanged="gvExamCategories_SelectedIndexChanged" PageSize="5" 
    ViewStateMode="Disabled">
    <Columns>
        <asp:CommandField ShowSelectButton="True" />
        <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
        <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
        <asp:BoundField DataField="Description" HeaderText="Description" 
            SortExpression="Description" />
        <asp:BoundField DataField="OptimisticId" HeaderText="OptimisticId" 
            SortExpression="OptimisticId" />
        <asp:BoundField DataField="CreatedBy" HeaderText="CreatedBy" 
            SortExpression="CreatedBy" />
       
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="odsExamCategory" runat="server" 
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetExamCategories" 
    TypeName="Skynet.LiteForm.Administration.MaintenanceExamCategory">
</asp:ObjectDataSource>
<br />
<asp:DetailsView ID="dvExamCategory" runat="server" AutoGenerateRows="False" 
    DataKeyNames="Id" DataSourceID="ocdsWorkExamCategory" DefaultMode="Insert" 
    Height="50px" Width="125px">
    <Fields>
        <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
        <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
        <asp:BoundField DataField="Description" HeaderText="Description" 
            SortExpression="Description" />
        <asp:BoundField DataField="OptimisticId" HeaderText="OptimisticId" 
            SortExpression="OptimisticId" />
        <asp:BoundField DataField="CreatedBy" HeaderText="CreatedBy" 
            SortExpression="CreatedBy" />
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" 
            ShowInsertButton="True" />
    </Fields>
</asp:DetailsView>
<asp:ObjectDataSource ID="ocdsWorkExamCategory" runat="server" 
    DataObjectTypeName="Skynet.LiteFoundation.BusinessEntities.ExamCategory" 
    DeleteMethod="Delete" InsertMethod="AddExamCategory" 
    OldValuesParameterFormatString="original_{0}" SelectMethod="GetExamCategory" 
    TypeName="Skynet.LiteForm.Administration.MaintenanceExamCategory" 
    UpdateMethod="UpdateExamCategory">
    <SelectParameters>
        <asp:ControlParameter ControlID="gvExamCategories" DbType="Guid" Name="Id" 
            PropertyName="SelectedValue" />
    </SelectParameters>
</asp:ObjectDataSource>
</asp:Content>
